textarea {
  outline: none;
}
.replay_dm_con {
  background-color: #f8f8f8;
  position: absolute;
  bottom: 0;
  right: 0;
  top: 0;
  z-index: 0;
  width: 500px;
  &.hide {
    transform: translateX(500px);
  }
  .dm_list_outer{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    .dm_list {
      padding: 0 20px;
      position: absolute;
      max-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      bottom: 0;
      left: 0;
      right: 0;
      .dm_item {
        margin: 8px 0;
        min-height: 26px;
        position: relative;
        .dm_head {
          height: 26px;
          width: 26px;
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 50%;
          overflow: hidden;
        }
        .dm_detail {
          line-height: 26px;
          font-size: 16px;
          padding-left: 32px;
          word-break: break-all;
          .dm_name {
            color: #74af69;
            margin-right: 6px;
          }
          .dm_teacher {
            background: linear-gradient(to right, #0edd1d, #4af5d4);
            color: #fff;
            padding:1px 8px;
            border-radius: 15px;
            margin-right: 6px;
            font-size: 12px;
            vertical-align: bottom;
          }
          .dm_question_flag {
            background-color: @baseGreen;
            color: #fff;
            padding: 1px 8px;
            border-radius: 15px;
            margin-right: 6px;
            font-size: 12px;
            vertical-align: bottom;
          }
          .dm_text {
            color: #515151;
            word-break: break-all;
          }
        }
        &.red {
          .dm_detail {
            .dm_name {
              color: @baseRed;
            }
            .dm_teacher {
              background: @baseRed;
            }
            .dm_question_flag {
              background: @baseRed;
            }
          }
        }
      }
      &.hide {
        display: none;
      }
    }
  }

}
.replay_dm_footer {
  position: absolute;
  width: 100%;
  padding: 0 20px;
  bottom: 0;
  .input_con {
    height: 90px;
    .input {
      width: 100%;
      border-radius: 4px;
      border: 1px solid #e9eaec;
      height: 90px;
      color: #7b818e;
      font-size: 14px;
      background-color: #fff;
      resize:none;
      padding: 0 10px;
      box-shadow: none;
      &::-webkit-input-placeholder{
        color: #7b818e;
      }
      &::-moz-placeholder{  //不知道为何火狐的placeholder的颜色是粉红色，怎么改都不行，希望有大牛路过帮忙指点
        color: #7b818e;
      }
      &:-moz-placeholder{  //不知道为何火狐的placeholder的颜色是粉红色，怎么改都不行，希望有大牛路过帮忙指点
        color: #7b818e;
      }
      &:-ms-input-placeholder{  //由于我的IE刚好是IE9，支持不了placeholder，所以也测试不了(⊙﹏⊙)，有IE10以上的娃可以帮我试试
        color: #7b818e;
      }
    }
  }
  .dm_footer_bottom {
    height: 32px;
    margin: 20px 0;
    .dm_switch {
      margin-top: 3px;
      width: 48px;
      height: 20px;
      float: left;
      border-radius: 15px;
      cursor: pointer;
      position: relative;
      margin-left: 1px;
      box-shadow:inset 0 1px 3px 0 rgba(0,0,0,0.50);
      .switch {
        width: 26px;
        height: 26px;
        font-size: 14px;
        line-height: 26px;
        text-align: center;
        border-radius: 50%;
        background-color: #fff;
        position: absolute;
        box-shadow:0 0 1px 0 rgba(138,138,138,0.50);
        top: -3px;
      }
      &.switch_on {
        background-color: @baseGreen;
        .switch {
          color: @baseGreen;
          left: -1px;
        }
      }
      &.switch_off {
        background-color: #555;
        .switch {
          color: #ccc;
          right: -1px;
        }
      }
    }
    .send_btn {
      width: 79px;
      height: 32px;
      float: right;
      border-radius: 4px;
      background-color: @baseGreen;
      color: #fff;
      line-height: 32px;
      text-align: center;
      font-size: 14px;
      cursor: pointer;
    }
  }
  &.hide {
    background-color: transparent;
    .input_con{
      display: none;
    }
    .send_btn {
      display: none;
    }
  }
  &.red {
    .send_btn {
      background-color: @baseRed;
    }
    .dm_switch {
      &.switch_on{
        background-color: @baseRed;
        .switch {
          color: @baseRed;
        }
      }
    }
  }
}
.replay_out_dm_switch {
  margin-top: 3px;
  width: 48px;
  height: 20px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  border-radius: 15px;
  cursor: pointer;
  margin-left: 1px;
  z-index: 3;
  transition: transform .5s;
  &.show_footer {
    transform: translateY(-50px);
  }
  &.red {
    &.switch_on{
      background-color: @baseRed;
      .switch {
        color: @baseRed;
      }
    }
  }
  .switch {
    width: 26px;
    height: 26px;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    box-shadow:0 0 1px 0 rgba(138,138,138,0.50);
    top: -3px;
  }
  &.switch_on {
    background-color: @baseGreen;
    .switch {
      color: @baseGreen;
      left: -1px;
    }
  }
  &.switch_off {
    background-color: #555;
    .switch {
      color: #ccc;
      right: -1px;
    }
  }
}

